//
//  MY_CollectionViewCell.m
//  YUXiu
//
//  Created by wang on 16/6/29.
//  Copyright © 2016年 Wang. All rights reserved.
//

#import "MY_CollectionViewCell.h"

@implementation MY_CollectionViewCell
//
-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        float wd = kScreenWidth/4;
        //(wd,100)
        _iconView = [[UIImageView alloc]initWithFrame:krect((wd-50)/2, 25, 50, 50)];
        _iconView.layer.cornerRadius = 25;
        _iconView.layer.masksToBounds = YES;
        [self.contentView addSubview:_iconView];
        
        _title = [[UILabel alloc]initWithFrame:krect((wd-50)/2, _iconView.golf_bottom+5, 50, 20)];
        _title.textColor = kBlackCOLOR;
        _title.textAlignment = NSTextAlignmentCenter;
        _title.font = Font(12);
        [self.contentView addSubview:_title];
        
        
    }
    
    
    return self;
}
-(void)layoutSubviews{
   
}
@end
